package com.duixiang.lei.huanzhe;

public class TestPaient {
    public static void main(String[] args) {

        Patient patient = new Patient();

        patient.setName("张三");
        patient.setAge(25);
        patient.setGender("女");
        System.out.println(patient.getName());
        System.out.println(patient.getAge());
        System.out.println(patient.getGender());
        patient.year(1997, 4);
        patient.illness("感冒");
        System.out.println("----------");
        System.out.println(patient.toString());
        System.out.println("----------");
        Patient patient1 = new Patient();
        patient1.setName("李四");
        patient1.setAge(30);
        patient1.setGender("男");
        System.out.println(patient1.getName());
        System.out.println(patient1.getAge());
        System.out.println(patient1.getGender());
        patient1.year(1992, 12);
        patient1.illness("癌症");


    }
}
